<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>18-形参和实参相关问题说明</title>
	</head>
	<body>
		<script type="text/javascript">
			//传一个数组，计算数组长度+数字的值
			function arrLength(arr,number){
				console.log(arr);
				console.log(number);
				alert(arr.length+number);
			}
			
			//arrLength(['1',2,123,789,90],10);
			//实参多于形参
			//arrLength(['1',33,89],3,true,'');
			arrLength(['1',33,89]);
		</script>
	</body>
</html>
